import request from '@/utils/request'

export default {
  getVersionList(params) {
    return request({
      url: '/system/version/list',
      method: 'get',
      params: params
    })
  },
  getVersionOptions() {
    return request({
      url: '/system/version/options',
      method: 'get'
    })
  },
  createVersion(data) {
    return request({
      url: '/system/version/create',
      method: 'post',
      data
    })
  },
  updateVersion(data) {
    return request({
      url: `/system/version/update/${data.id}`,
      method: 'put',
      data
    })
  },
  deleteVersion(data) {
    return request({
      url: '/system/version/delete',
      method: 'delete',
      data
    })
  }
}
